package demo01;

import java.util.Scanner;

public class Demo03ScannerMax {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int a=sc.nextInt();
        System.out.println("请输入第二个数字");
        int b=sc.nextInt();
        System.out.println("请输入第三个数字");
        int c=sc.nextInt();
        int max=0;
        if(a>b) {
            max = a;
            if (max<c)
                max=c;
        }
        else {
            max=b;
            if (max<c)
                max=c;
        }
        System.out.println("最大值是："+max );

    }
}
